//
//  StandardView.m
//  jang
//
//  Created by lee han on 09/04/2017.
//  Copyright © 2017 lee han. All rights reserved.
//

#import "StandardInfo.h"

@implementation StandardInfo

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(void)initView{
    [_mStepper addTarget:self action:@selector(onStpperChange:) forControlEvents:UIControlEventValueChanged];
}

-(void)onStpperChange:(id)sender{
    _mStepperCount.text = [NSString stringWithFormat:@"%d", (int)_mStepper.value];
    if(_mDelegate){
        [_mDelegate onStepValueChange:_mStepper.value];
    }
}

@end
